import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const PAGEADMIN: AppRouteRecordRaw = {
  path: '/pageadmin',
  name: 'pageadmin',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '页面管理',
    requiresAuth: true,
    icon: 'icon-desktop',
    order: 3,
  },
  children: [
    {
      path: 'page',
      name: 'page',
      component: () => import('@/views/pageadmin/page.vue'),
      meta: {
        locale: '页面管理',
        requiresAuth: true,
        roles: [permissionType.sysAdmin],
      },
    },
  ],
}

export default PAGEADMIN
